import mediarequest from '@/utils/media-request'

export function mediaImageUpload(data) {
  return mediarequest({
    url: '/console/material/image/upload',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    method: 'post',
    data: data
  })
}

export function cloudstorageImageUpload(data) {
  return mediarequest({
    url: '/console/cloudstorage/image/upload',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    method: 'post',
    data: data
  })
}
